package com.exam.controller;


import com.exam.service.IPaperManageService;
import io.swagger.models.auth.In;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 试卷管理表 前端控制器
 * </p>
 *
 * @author zyh
 * @since 2023-03-09
 */
@RestController
@RequestMapping("/paper")
public class PaperManageController {

    @Autowired
    private IPaperManageService iPaperManageService;

    @GetMapping("/{paperId}")
    public Map<Integer, List<?>> findPaper(@PathVariable("paperId")Integer paperId){
        return iPaperManageService.findPaper(paperId);
    }

}
